package com.java.yz.day03.ketang;
//键盘输入对应的行数和列数，输出对应的*
import java.util.Scanner;
public class FunctionTest2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        //定义变量，见名知意
        System.out.println("请输入行数：");
        int i = sc.nextInt();
        System.out.println("请输入列数：");
        int j = sc.nextInt();
        xingxing(i,j);
    }

    /**
     * 确定返回值类型：void
     * 确定参数列表：int a，int b
     */
    public static void xingxing (int a,int b){
        for (int i = 0; i < a; i++) {
            for (int j = 0; j < b; j++) {
                System.out.print("*"+"\t");
            }
            System.out.println("\t");
        }

    }

}
